package com.yyplatform.admin.platform.notice.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author sleepforests@163.com
 * <p>
 * Created on 2024/9/22 10:58
 */
@Entity
@Getter
@Setter
@Table(name = "sys_notice_user")
public class SysNoticeUserEntity extends BaseEntity {

    @Column(name = "notice_id", nullable = false, columnDefinition = " bigint(20) comment '通知ID_FK' ")
    private Long noticeId;

    @Column(name = "title", nullable = false, columnDefinition = " varchar(200) comment '标题' ")
    private String title;

    @Column(name = "notice_type", nullable = false, columnDefinition = " tinyint comment '通知类型' ")
    private Integer noticeType;

    @Column(name = "read_flag", nullable = false, columnDefinition = " tinyint comment '是否已经阅读' ")
    private Boolean readFlag;


    @Column(name = "user_id", nullable = false, columnDefinition = "bigint(20) comment '用户ID'")
    private Long userId;


    @Column(name = "delete_flag", nullable = false, columnDefinition = "tinyint(1) default 0 comment '是否删除'")
    private Boolean deleteFlag;


}
